<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.0/css/jquery.dataTables.css">

<script type="text/javascript" language="javascript" src="//code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript" language="javascript" src="//cdn.datatables.net/1.10.0/js/jquery.dataTables.js"></script>

<script type="text/javascript" language="javascript" class="init">

jQuery.fn.dataTableExt.oApi.fnGetHiddenNodes = function ( settings )
{
    var nodes;
    var display = jQuery('tbody tr', settings.nTable);
 
    if ( jQuery.fn.dataTable.versionCheck ) {
        // DataTables 1.10
        var api = new jQuery.fn.dataTable.Api( settings );
        nodes = api.rows().nodes().toArray();
    }
    else {
        // 1.9-
        nodes = this.oApi._fnGetTrNodes( settings );
    }
 
    /* Remove nodes which are being displayed */
    for ( var i=0 ; i<display.length ; i++ ) {
        var iIndex = jQuery.inArray( display[i], nodes );
 
        if ( iIndex != -1 ) {
            nodes.splice( iIndex, 1 );
        }
    }
 
    return nodes;
};

$(document).ready(function() {
   oTable = $('#product_table').dataTable({
        "lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]]
    });
    
   $('form').submit(function(){
      $(oTable.fnGetHiddenNodes()).find('input:text').appendTo(this);
   });
} );


	</script>
    
    
</head>

<body style="font-family:Arial, Helvetica, sans-serif">

<h1>List of Confirmed Order </h1>
  澳洲已经确认的订单，请进货<br />
  <br />
  <table width="1000" border="1" cellspacing="0" cellpadding="10" style="font-size:12px;" align="center">
    <tr>
      <th scope="col">No.</th>
      <th scope="col">Order No.</th>
      <th scope="col">Date</th>
      <th scope="col">Staff</th>
      <th scope="col">Status</th>
      <th scope="col">Completection</th>
      <th scope="col">Action</th>
    </tr>
    <?php foreach($this->orderFollowUp as $k => $v){?>
    <tr>
      <td><?php echo $k + 1;?></td>
      <td><?php echo $v['order_no']?></td>
      <td><?php echo $v['order_create_date']?></td>
      <td><?php echo $v['staff_name']?></td>
      <td><?php echo $v['order_status']?></td>
      <td><?php echo round($v['prescent']*100,1); ?>% Scaned, <?php echo round($v['fullfill']*100,1); ?>% Fullfilled</td>
      <td align="center"><a href="#">Detail</a></td>
    </tr>
    <?php }?>
  </table>
  <br />
  
<h1>Products Queue</h1>
  等待进货产品池<br />
  <br />
  <table width="1000" border="1" cellspacing="0" cellpadding="10" style="font-size:12px;" id="product_table" >
    <thead>
    <tr>
      <th scope="col">No</th>
      <th scope="col">Barcode</th>
      <th scope="col">Description</th>
      <th scope="col">First Order</th>
      <th scope="col">Last Update</th>
      <th scope="col">Qty In Que</th>
      <th scope="col">Comment</th>
    </tr>
    </thead>
    <tfoot>
    <tr>
      <th scope="col">No</th>
      <th scope="col">Barcode</th>
      <th scope="col">Description</th>
      <th scope="col">Creation</th>
      <th scope="col">Last Update</th>
      <th scope="col">Qty In Que</th>
      <th scope="col">Comment</th>
    </tr>
    </tfoot>
    <tbody>    
<?php foreach($this->qList as $k => $v) {?>     
    <tr>
      <td><?php echo $k + 1; ?></td>
      <td><?php echo $v['code_product']?></td>
      <td><?php echo $v['des_product']?></td>
      <td><?php echo $v['date_create']?></td>
      <td><?php echo $v['date_update']?></td>
      <td><?php echo $v['qty_order']?></td>
      <td><form id="form1" name="form1" method="post" action="">
	  <?php echo $v['comment']?>
      <input name="btn_ud" type="button" id="btn_ud" value="+ Comment" />
    </form></td>
    </tr>
<?php }?>
	</tbody>    
  </table>
  <div style="width:100%; text-align:center; padding:10px;">
    <form id="form2" name="form2" method="post" action = "">
    输入您的登入密码:<input type = "password" name = "password" />
    <input name="instock" type="submit" value="入库扫描&gt;&gt;" style="font-size:18px;margin-left:60px" />
    <input name="outcheck" type="submit" value="装箱扫描&gt;&gt;" style="font-size:18px;margin-left:60px" />
</form>
  </div>
</body>
</html>
